package com.lingchou.cloud.process.api.dto.param.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Getter
@Setter
@ApiModel(value = "ProcessConfigVo", description = "流程简单配置参数类")
public class ProcessConfigVo {

    /**
     * 流程名
     */
    @ApiModelProperty(value = "流程名")
    @NotBlank(message = "流程名不能为空")
    private String processName;

    /**
     * 业务key
     */
    @ApiModelProperty(value = "业务key,不要数字开头",required = true)
    @NotNull(message = "业务key不能为空")
    private String businessKey;

    /**
     * 任务节点集合
     */
    @ApiModelProperty(value = "任务节点集合", required = true)
    @NotNull(message = "任务节点集合必传")
    @NotEmpty(message = "任务节点集合不能为空")
    @Valid
    private List<TaskNode> taskNodes;

}
